package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 追溯结果对象 d_result
 * 
 * @author ruoyi
 * @date 2025-02-16
 */
public class DResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    private Long ID;

    /** 关联ID */
    @Excel(name = "关联ID")
    private Long relationId;

    /** 工序 */
    @Excel(name = "工序")
    private String step;

    /** 设备号 */
    @Excel(name = "设备号")
    private String eqpId;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eventTime;

    /** 小包编码 */
    @Excel(name = "小包编码")
    private String packName;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal qty;

    /** 批次 */
    @Excel(name = "批次")
    private String batchId;

    /** 组织 */
    @Excel(name = "组织")
    private String groupId;

    private String wbBatch;

    private String jlBatch;

    public String getWbBatch() {
        return wbBatch;
    }

    public void setWbBatch(String wbBatch) {
        this.wbBatch = wbBatch;
    }

    public String getJlBatch() {
        return jlBatch;
    }

    public void setJlBatch(String jlBatch) {
        this.jlBatch = jlBatch;
    }

    public void setID(Long ID)
    {
        this.ID = ID;
    }

    public Long getID() 
    {
        return ID;
    }
    public void setRelationId(Long relationId) 
    {
        this.relationId = relationId;
    }

    public Long getRelationId() 
    {
        return relationId;
    }
    public void setStep(String step) 
    {
        this.step = step;
    }

    public String getStep() 
    {
        return step;
    }
    public void setEqpId(String eqpId) 
    {
        this.eqpId = eqpId;
    }

    public String getEqpId() 
    {
        return eqpId;
    }
    public void setEventTime(Date eventTime) 
    {
        this.eventTime = eventTime;
    }

    public Date getEventTime() 
    {
        return eventTime;
    }
    public void setPackName(String packName) 
    {
        this.packName = packName;
    }

    public String getPackName() 
    {
        return packName;
    }
    public void setQty(BigDecimal qty) 
    {
        this.qty = qty;
    }

    public BigDecimal getQty() 
    {
        return qty;
    }
    public void setBatchId(String batchId) 
    {
        this.batchId = batchId;
    }

    public String getBatchId() 
    {
        return batchId;
    }
    public void setGroupId(String groupId)
    {
        this.groupId = groupId;
    }

    public String getGroupId()
    {
        return groupId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("relationId", getRelationId())
            .append("step", getStep())
            .append("eqpId", getEqpId())
            .append("eventTime", getEventTime())
            .append("packName", getPackName())
            .append("qty", getQty())
            .append("batchId", getBatchId())
            .append("groupId", getGroupId())
            .toString();
    }
}
